/*
 * AllwinnerTech hdmi cec driver
 *
 * Copyright (C) 2015 AllwinnerTech Corporation
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#include "hdmi_cec.h"

/* physically address init */
unsigned int local_phy_addr  = 0x1000;
unsigned int root_phy_addr   = 0x0000;
unsigned int active_phy_addr = 0x0000;

int cec_get_physical_address(int type)
{
	int addr = -1;

	switch (type) {
	case PHY_ADDR_TYPE_ROOT:
		addr = root_phy_addr;
		break;
	case PHY_ADDR_TYPE_ACTIVE:
		addr = active_phy_addr;
		break;
	case PHY_ADDR_TYPE_LOCAL:
		addr = local_phy_addr;
		break;
	default:
		break;
	}
	return addr;
}

void cec_standby_broadcast(void)
{
	return;
}

void cec_wakeup_broadcast(void)
{
	return;
}

int cec_get_phy_addr_from_edid(void)
{
	return 0;
}

void cec_polling_message(void)
{
	return;
}

int is_logical_addr_match(int la)
{
	return 0;
}

int is_broadcast(int la)
{
	return 0;
}

int cec_core_init(void)
{
	hdmi_cec_line_init(0);
	return hdmi_cec_utils_init();
}

void cec_core_exit(void)
{
	hdmi_cec_utils_exit();
}

void cec_core_reset(void)
{
	return;
}
